package com.testfileupload.uploadimg.design.iterator.define;

import java.util.Vector;

public class Client {
    public static void main(String[] args) {
        //声明容器
        Aggregate aggregate = new ConcreateAggregate();
        aggregate.add("aba");
        aggregate.add("aaa");
        aggregate.add("123");
        Iterator iterator = aggregate.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }
    }
}
